package com.shouhuobao.take.active;

import android.os.Message;

import com.iseastar.guojiang.consts.MsgID;
import com.iseastar.guojiang.logic.AppHttp;
import com.shouhuobao.station.R;
import com.shouhuobao.take.active.adapter.ActiveAdapter;

/**
 * Created by joker on 2017/9/21.
 * 活动进行中
 */
public class Active1Fragment extends BaseActiveFragment {

    @Override
    protected void findViewById() {
        setContentView(R.layout.fragment_active);
        super.findViewById();
        mAdapter = new ActiveAdapter(null, getActivityContext());
        mListView.setAdapter(mAdapter);
        super.activeType = 0;
        showLoadingDialog(null);
        AppHttp.getInstance().queryActiveData(0);
    }

    @Override
    public boolean handleMessage(Message msg) {
        switch (msg.what) {
            //活动进行中
            case MsgID.query_activing_data:
                super.handleMessage(msg.obj);
                return true;
            default:
                return super.handleMessage(msg);
        }
    }
}
